package com.v2.k8;

import com.v2.k2.Person;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试@Bean作用在方法上会不会报错
 */
public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		Person person = applicationContext.getBean(Person.class);
		System.out.println(person);

	}

}
